package cn.yunhe.dao;

import cn.yunhe.model.Role;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import java.util.List;
import java.util.Map;

/**
 * Created by zs on 2017/11/28.
 */
public interface RoleMapper {

    int insertRole(Role role);

    int deleteRole(Long id);

    int updateRole(Role role);

    Role getRole(Long id);

    List<Role> findRoles(String roleName);

    List<Role> findRoleByMap(Map<String, Object> parameterMap);

    /**
     * 分页参数 RowBounds
     *
     * @return
     */
    List<Role> findByRowBounds(@Param("roleName") String rolename, @Param("note") String note, RowBounds rowBounds);

}
